lab | 您所在的位置:网站首页 › flow 225 › lab |
Create an initial residual graph. findAugmentingPath - use DFS to find a path in the residual graph with leftover capacity. Find an augmenting path from the source to the sink. ReturnsA vector of the vertices from source to sink with greater than zero flow. Returns an empty vector if no such path exists.This version is the helper function. Parameters sourceThe starting (current) vertex sinkThe destination vertex pathThe vertices in the path visitedA set of vertices we have visited |
CopyRight 2018-2019 实验室设备网 版权所有 |